#include "virtualdevice_discover.h"
#include "device_virtual_dev.h"
#include <stdio.h>

virtual_dev_discover::virtual_dev_discover( void )
{
	_virtual_dev = 0;
}

virtual_dev_discover::~virtual_dev_discover( void )
{

}

int virtual_dev_discover::discover_cd_devices( char * parameter, char device_pathes[32][256] )
{
	return 1;
}

int virtual_dev_discover::enum_and_create_devices( char * parameter )
{
	int number = 0;
	FILE *fp = NULL;
	fp = fopen(parameter, "r+");
	if(fp != NULL)
	{
		number++;
		fclose(fp);
	}
	
	return number;
}

device_base * virtual_dev_discover::get_device( int index )
{
	return _virtual_dev;
}

int virtual_dev_discover::get_device_number()
{
	return 1;
}

device_base * virtual_dev_discover::get_first_device( MK_POSITION & pos )
{
	return _virtual_dev;
}

device_base * virtual_dev_discover::get_next_device( MK_POSITION & pos )
{
	return 0;
}

int virtual_dev_discover::update_devices( int * removed_num, int * new_num )
{
	*removed_num = 0;
	*new_num =0;
	return 0;
}


